package com.xxx.base.init;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.context.event.EventListener;
import org.springframework.core.annotation.Order;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * Created by xxb on 17/12/15.
 */
@Component
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public class SystemInitService {
    protected final Logger log = LoggerFactory.getLogger(getClass());


    @Order(99)
    @Async
    @EventListener(ContextRefreshedEvent.class)
    public void systemInit() {
    }
}
